package spectra.ee.web.api.model;

import spectra.ee.web.api.ApiPublic;

/**
 * API 에서 결과를 리턴할때 사용하는 구조체
 * @author dhheo
 *
 */
public class ResultData
{
	protected int errorCode = ApiPublic.ERROR_CODE_SUCCESS;
	protected String errorMessage = null;
	protected Object data = null;
	
	public ResultData(int errorCode, String errorMessage, Object data)
	{
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
		this.data = data;
	}
	
	public int getErrorCode()
	{
		return errorCode;
	}
	public void setErrorCode(int errorCode)
	{
		this.errorCode = errorCode;
	}
	public String getErrorMessage()
	{
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage)
	{
		this.errorMessage = errorMessage;
	}
	public Object getData()
	{
		return data;
	}
	public void setData(Object data)
	{
		this.data = data;
	}
	
}
